package com.itqf.service.impl;

import com.itqf.entity.TransactionRecord;
import com.itqf.mapper.TransactionRecordMapper;
import com.itqf.service.TransactionRecordService;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/11/12
 * @Time: 上午11:33
 */
public class TransactionRecordServiceImpl implements TransactionRecordService {

    private TransactionRecordMapper transactionRecordMapper;

    public void setTransactionRecordMapper(TransactionRecordMapper transactionRecordMapper) {
        this.transactionRecordMapper = transactionRecordMapper;
    }

    @Override
    public void insertRecord(TransactionRecord transactionRecord) {
        transactionRecordMapper.insert(transactionRecord);
        //int i = 10/0;//模拟异常
    }
}
